﻿<%@ Page Language="C#" %>
<%@ OutputCache Duration="100" VaryByParam="None" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    public static string GetTime(HttpContext context)
    {
        return DateTime.Now.ToString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LinkButton ID="LinkButton1" runat="server">Refresh Page</asp:LinkButton>
        <br />
        <br />
        <div>Page Time: <%= DateTime.Now %></div>
        <br />
        <asp:Substitution ID="Substitution1" runat="server" MethodName="GetTime" />
    </div>
    </form>
</body>
</html>
